package com.example.ut.mapper;

import com.example.ut.controller.request.CreateStudentRequest;
import com.example.ut.entity.StudentEntity;
import com.example.ut.service.command.StudentDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface StudentMapper {
    StudentMapper INSTANCE = Mappers.getMapper(StudentMapper.class);

    StudentDTO toDTO(CreateStudentRequest request);

    StudentEntity toEntity(StudentDTO studentDTO);
}
